package dp.danhngon.danhngoncuocsong;

import android.content.Context;
import android.sax.RootElement;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
import android.widget.TextView;
import dp.danhngon.danhngoncuocsong.R;

public class LayoutItem extends LinearLayout{
	TextView txtSubTile;
	TextView txtSubContent;
	
	//4. dung layoutInflater bien groups view thanh view
	public LayoutItem(Context context) {
		super(context);
		LayoutInflater layoutInflater=(LayoutInflater)context.getSystemService(context.LAYOUT_INFLATER_SERVICE);
		layoutInflater.inflate(R.layout.sub_content, this,true);
		txtSubTile=(TextView)findViewById(R.id.txtSubTitle);
		txtSubContent=(TextView)findViewById(R.id.txtSubContent);
	}

}
